Klasse DifferencesPrintPresenter
java.lang.Object
com.inet.pdfc.presenter.BasePresenter
com.inet.pdfc.presenter.ExportPresenter
com.inet.pdfc.presenter.DifferencesPrintPresenter
- Alle implementierten Schnittstellen:
NamedExtension, Cloneable
This presenter exports a graphical overview of the complete comparison to a printer. The visual representation is
similar to the one of the i-net PDFC GUI.
This presenter will create a PrinterJob for each Pair of compared PDFs using the PrintService and
attributes passed in at construction.
In the case you need to change the printer settings for each compared pair, you can override
onComparisonDone() and change the AttributeSet before calling super.onComparisonDone();.
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen BasePresenter
BasePresenter.ERROR_SOURCE -
Feldübersicht
Von Klasse geerbte Felder ExportPresenter
PAINT_BOTH, PAINT_LEFT, PAINT_RIGHTVon Klasse geerbte Felder BasePresenter
LOGGER, MAX_FILENAME_LENGTH -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungDifferencesPrintPresenter(@Nonnull PrintService service, PrintRequestAttributeSet attributes) Create a new Presenter which exports the complete comparison result to a printer. -
Methodenübersicht
Modifikator und TypMethodeBeschreibungReturns the UNIQUE name of the extension.voidCalled to indicate that a comparison has finished.spawn(boolean spawnWithParent) Creates another presenter of the the same type as the current one.Von Klasse geerbte Methoden ExportPresenter
createAndSetupPrintPainter, setBackgroundColor, setOverlapAlpha, setPaintOverlap, setPaintSidesVon Klasse geerbte Methoden BasePresenter
canInformUserOnErrors, createExportFilename, detachFromModel, executeImmediately, getDefaultExportName, getLastPresenterException, getModel, getParent, getPresenterExceptions, onClear, onDataUpdate, onError, onFilterChange, onFinish, onInit, onProgressUpdate, setModel, setParent
-
Konstruktordetails
-
DifferencesPrintPresenter
public DifferencesPrintPresenter(@Nonnull PrintService service, PrintRequestAttributeSet attributes) Create a new Presenter which exports the complete comparison result to a printer.- Parameter:
service- The PrinterService to use for the printing process. NOT NULL.attributes- A set of attributes which holds printing information such as paper size, orientation or which pages to print. See ApiDoc for Java Printing for more details. NOT NULL.- Seit:
- i-net PDFC 3.0
-
-
Methodendetails
-
getExtensionName
Returns the UNIQUE name of the extension. With UNIQUE referring to 'unique among all implementations of the same interface'- Gibt zurück:
- the UNIQUE name of the extension
-
onComparisonDone
Called to indicate that a comparison has finished. This does not imply that any page data or differences are available.- Angegeben von:
onComparisonDonein KlasseBasePresenter- Löst aus:
Exception- thrown in case the processing of the finish step fails
-
spawn
Creates another presenter of the the same type as the current one. The spawned presenter may either have the same settings as the current one or it may be a child of the current one.- Setzt außer Kraft:
spawnin KlasseBasePresenter- Parameter:
spawnWithParent- if true, the presenter is allowed to keep a reference to it's parent to create a summary on onFinish()- Gibt zurück:
- a new presenter for the same batch comparison run as the current one
-